<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app"></div>
</body>
<script>
    const app = Vue.createApp({
        data(){
            return{
                message:'全部修改完再显示',
                Numbertype:123,
                me:'自动删除空格'
            }
        },
        template:`<h2>{{message}}</h2>
        <input v-model.lazy="message"/><br/>
        <h2>{{typeof Numbertype}}</h2>
        <input v-model.lazy.number="Numbertype"/><br/>
        <h2>{{me}}</h2>
        <input v-model.trim="me"/><br/>`
    })
    app.mount("#app")
</script>
</html>